package org.abettor.pushbox.download;

import java.util.HashMap;
import java.util.Map;

import org.abettor.pushbox.config.Config;
import org.abettor.pushbox.net.NetTools;

/**
 * 读取通知消息的操作
 * @author jzh
 *
 */
public class DownloadNotify {
	private NetTools netTools = new NetTools();
	/**
	 * 读取网络通知
	 * @return
	 */
	public String readNotify(String nickName,String dateTime){
		Map<String, String> map = new HashMap<String, String>();
		if(nickName != null){
			map.put("nickName", nickName);
		}
		if(dateTime != null){
			map.put("beginTime", dateTime);
		}
		String ret = netTools.postData(Config.listNotifyUrl, map);
		return ret;
	}
}
